package org.hiucung.hlsdownloader.ui.components

import androidx.compose.material3.ExperimentalMaterial3Api
import androidx.compose.material3.ModalBottomSheet
import androidx.compose.runtime.Composable

/**
 * @title: BottomSheetDialog
 * @projectName HLS Downloader
 * @description: 使用 ModalBottomSheet实现的 BottomSheetDialog组合控件
 * @author Kicc
 * @date 2025/8/31 16:26
 */
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun BottomSheetDialog(
    onDismissRequest: () -> Unit,
    content: @Composable () -> Unit
) {
    ModalBottomSheet(
        onDismissRequest = { onDismissRequest() }
    ) {
        content()
    }
}